<!--
 * @Date: 2024-05-29 11:37:50
 * @LastEditors: 陈俊宇 467724386@qq.com
 * @LastEditTime: 2024-08-19 16:42:07
-->
<template>
    <div class="sc-message--system">
        {{ data.data.text }}

        <el-button type="primary" link @click="$emit('reConnect')">
            {{ data.btnText }}
        </el-button>
    </div>
</template>

<script setup>
const props = defineProps({
    data: {
        type: Object,
        required: true,
    },
})
</script>

<style scoped lang="scss">
.sc-message--system {
    color: #000000;
    padding: 8px 12px;
    border-radius: 4px;
    font-size: 14px;
    line-height: 1.2;
    white-space: pre-wrap;
    -webkit-font-smoothing: subpixel-antialiased;
    background: #ececec;
    display: flex;
    align-items: center;
}
</style>
